﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using LotteryVote.Data;
using LotteryVote.Entity;

namespace LotteryVote.Logic
{
    public class LotterySpecieFacade
    {
        private LotterySpecieDataAccess _daLotterySpecie;
        internal LotterySpecieDataAccess DaLotterySpecie
        {
            get
            {
                if (_daLotterySpecie == null)
                    _daLotterySpecie = new LotterySpecieDataAccess();
                return _daLotterySpecie;
            }
            set
            {
                _daLotterySpecie = value;
            }
        }

        public IList<LotterySpecies> GetSpeciesByUser(User user)
        {
            return DaLotterySpecie.GetSpeciesByUser(user);
        }
        public IList<LotterySpecies> GetAll()
        {
            return DaLotterySpecie.GetAllSpecies();
        }
    }
}
